using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ConcreteModelFlyweight_1 : ModelFlyweight_1
{
    private GameObject modelPrefab;
    public ConcreteModelFlyweight_1(GameObject prefab)
    {
        modelPrefab = prefab;
    }

    public override void Render(Vector3 position)
    {
        //实例化模型并放在指定位置
        GameObject.Instantiate(modelPrefab, position, Quaternion.identity);
        // Implementation for rendering the model at the specified position
        Debug.Log($"Rendering model at position: {position}");
    }
}
